package com.yuanheng100.ems4j.common.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by j4love on 2016/12/13.
 * Description : 使用状态
 * <p>
 * 通用标识使用状态
 */
public enum UseStatus
{

    ABLE((short) 1, "可用"),
    DISABLE((short) 2, "不可用");

    public Short code;
    public String name;


    public static Map<Short, UseStatus> statusMap = new HashMap<Short, UseStatus>();

    static
    {
        for (UseStatus useStatus : UseStatus.values())
        {
            statusMap.put(useStatus.code, useStatus);
        }

    }

    UseStatus(Short code, String name)
    {
        this.code = code;
        this.name = name;
    }
}
